/**
 * 
 */
package com.og.managedbean;

import java.io.IOException;
import java.io.Serializable;

import javax.enterprise.context.SessionScoped;
import javax.faces.context.FacesContext;
import javax.inject.Named;

import org.apache.log4j.Logger;

/**
 * @author Renaud DIANA
 *
 */
@Named
@SessionScoped
public class StartBean implements Serializable {

	private static final long serialVersionUID = 1L;

	// Log4j	 
	private static final Logger	log	= Logger.getLogger(StartBean.class);
				
	/**
	 * 
	 */
	public StartBean() {
		// TODO Auto-generated constructor stub
	}

	public String toWelcome() throws IOException {
		
		FacesContext.getCurrentInstance().getExternalContext().redirect("/xhtml/welcome.xhtml");
		log.debug("performing redirection");
		return "";
	}
}
